import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from "../views/HomeView.vue"
import HeaderComp from "@/components/HeaderComp.vue";
import FooterComp from "@/components/FooterComp.vue";
import LoginView from "@/views/LoginView.vue";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path:"/",
      name:"home",
      components:{
        default:HomeView,
        header:HeaderComp,
        footer:FooterComp,
      }
    },
    {
      path:"/login",
      name:"login",
      component:LoginView
    }
  ]
})

export default router
